package com.ff.discounts.component.tab.me

import android.os.Build
import android.os.Bundle
import androidx.annotation.RequiresApi
import com.ff.discounts.component.address.AddressActivity
import com.ff.discounts.component.login.LoginActivity
import com.ff.discounts.databinding.FragmentMeBinding
import com.ff.discounts.fragment.BaseViewModelFragment
import com.ff.discounts.util.DeviceUtils

/**
 *
 * @author: fufang
 * @date: 2023/10/17
 */
class MeFragment :BaseViewModelFragment<FragmentMeBinding>(){

    @RequiresApi(Build.VERSION_CODES.R)
    override fun initViews() {
        super.initViews()
        /// 获取导航栏高度
        val statsH : Int =DeviceUtils.getNavigationBarHeight(requireContext())
        binding.meFragment.setPadding(0, statsH,0,0);

    }

    override fun initListeners() {
        super.initListeners()
//        binding.goLogin.setOnClickListener {
//            startActivity(LoginActivity::class.java)
//        }
//        binding.goAddress.setOnClickListener {
//            startActivity(AddressActivity::class.java)
//        }
    }




    companion object{
        fun newInstance(): MeFragment {
            val args = Bundle()
            val fragment = MeFragment()
            fragment.arguments = args
            return fragment
        }
    }
}